package com.jeecg.demo.entity;

import javax.persistence.*;
import java.util.Date;

/**
 * TTlDanjtk entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "MT_GL_DANJTK")
public class TGlDanjtk implements java.io.Serializable, Cloneable {

	// Fields

	private Long sysid;
	private String danjid;
	private String biaot;
	private String neir;
	private Date gengxsj;
	private String danjlx;
	private String paix;
	private Long tiakid;

	// Constructors

	/** default constructor */
	public TGlDanjtk() {
	}

	/** minimal constructor */
	public TGlDanjtk(Long sysid) {
		this.sysid = sysid;
	}

	/** full constructor */
	public TGlDanjtk(Long sysid, String danjid, String biaot, String neir, Date gengxsj, String danjlx, String paix,
			Long tiakid) {
		this.sysid = sysid;
		this.danjid = danjid;
		this.biaot = biaot;
		this.neir = neir;
		this.gengxsj = gengxsj;
		this.danjlx = danjlx;
		this.paix = paix;
		this.tiakid = tiakid;
	}

	public Object clone() {
		Object o = null;
		try {
			o = super.clone();
		} catch (CloneNotSupportedException e) {
		}
		return o;

	}

	// Property accessors
	@Id
	@SequenceGenerator(name = "sequence", sequenceName = "SEQ_TL_DANJTK", allocationSize = 1)
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sequence")
	@Column(name = "SYSID", unique = true, nullable = false, precision = 15, scale = 0)
	public Long getSysid() {
		return this.sysid;
	}

	public void setSysid(Long sysid) {
		this.sysid = sysid;
	}

	@Column(name = "DANJID", length = 50)
	public String getDanjid() {
		return this.danjid;
	}

	public void setDanjid(String danjid) {
		this.danjid = danjid;
	}

	@Column(name = "BIAOT", length = 200)
	public String getBiaot() {
		return this.biaot;
	}

	public void setBiaot(String biaot) {
		this.biaot = biaot;
	}

	@Column(name = "NEIR", length = 4000)
	public String getNeir() {
		return this.neir;
	}

	public void setNeir(String neir) {
		this.neir = neir;
	}

	@Column(name = "GENGXSJ", length = 50)
	public Date getGengxsj() {
		return this.gengxsj;
	}

	public void setGengxsj(Date gengxsj) {
		this.gengxsj = gengxsj;
	}

	@Column(name = "DANJLX", length = 50)
	public String getDanjlx() {
		return this.danjlx;
	}

	public void setDanjlx(String danjlx) {
		this.danjlx = danjlx;
	}

	@Column(name = "PAIX", length = 50)
	public String getPaix() {
		return this.paix;
	}

	public void setPaix(String paix) {
		this.paix = paix;
	}

	@Column(name = "TIAKID", precision = 22, scale = 0)
	public Long getTiakid() {
		Long ret = null;
		if (this.tiakid == null) {
			ret = this.sysid;
		} else {
			ret = this.tiakid;
		}
		return ret;
	}

	public void setTiakid(Long tiakid) {
		this.tiakid = tiakid;
	}

}